home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / cenviw1.zip / OPENCMM.CMM < prev    next >
Text File  |  1993-08-05  |  496b  |  16 lines

  1. // OpenCmm.cmm - Example Cmm source file that uses the simple
  2. //               PickFile.lib interface into the GetOpenFilename()
  3. //               function in Windows' Common dialog DLL
  4. //               (COMMDLG.DLL).
  5. //
  6. // This program lets user selecte a source file (default to .cmm)
  7. // and then start notepad with that file.
  8.  
  9. #include <PickFile.lib>
  10.  
  11. FileName = GetOpenFileName("*.cmm","Select a file to edit.");
  12. if ( FileName ) {
  13.    spawn(P_NOWAIT,"NotePad.exe",FileName);
  14. }
  15.  
  16.